using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_UIComposite_TreeView_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.UIComposite.TreeView);
            args = new Type[]{};
            method = type.GetMethod("get_SelectNode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_SelectNode_0);
            args = new Type[]{typeof(huqiang.UIComposite.TreeViewNode)};
            method = type.GetMethod("set_SelectNode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_SelectNode_1);
            args = new Type[]{typeof(huqiang.Data.FakeStruct), typeof(huqiang.Core.HGUI.UIElement), typeof(huqiang.Core.HGUI.UIInitializer)};
            method = type.GetMethod("Initial", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Initial_2);
            args = new Type[]{};
            method = type.GetMethod("Refresh", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Refresh_3);
            args = new Type[]{};
            method = type.GetMethod("get_PercentageX", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_PercentageX_4);
            args = new Type[]{typeof(System.Single)};
            method = type.GetMethod("set_PercentageX", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_PercentageX_5);
            args = new Type[]{};
            method = type.GetMethod("get_PercentageY", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_PercentageY_6);
            args = new Type[]{typeof(System.Single)};
            method = type.GetMethod("set_PercentageY", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_PercentageY_7);
            args = new Type[]{typeof(huqiang.UIEvent.UserEvent), typeof(huqiang.UIEvent.UserAction)};
            method = type.GetMethod("DefultItemClick", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DefultItemClick_8);
            args = new Type[]{typeof(huqiang.UIComposite.HotTVMiddleware)};
            method = type.GetMethod("SetItemUpdate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetItemUpdate_9);
            args = new Type[]{};
            method = type.GetMethod("Clear", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Clear_10);
            args = new Type[]{typeof(System.Single)};
            method = type.GetMethod("Update", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Update_11);

            field = type.GetField("Size", flag);
            app.RegisterCLRFieldGetter(field, get_Size_0);
            app.RegisterCLRFieldSetter(field, set_Size_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Size_0, AssignFromStack_Size_0);
            field = type.GetField("ItemSize", flag);
            app.RegisterCLRFieldGetter(field, get_ItemSize_1);
            app.RegisterCLRFieldSetter(field, set_ItemSize_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_ItemSize_1, AssignFromStack_ItemSize_1);
            field = type.GetField("Root", flag);
            app.RegisterCLRFieldGetter(field, get_Root_2);
            app.RegisterCLRFieldSetter(field, set_Root_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Root_2, AssignFromStack_Root_2);
            field = type.GetField("ItemHigh", flag);
            app.RegisterCLRFieldGetter(field, get_ItemHigh_3);
            app.RegisterCLRFieldSetter(field, set_ItemHigh_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_ItemHigh_3, AssignFromStack_ItemHigh_3);
            field = type.GetField("eventCall", flag);
            app.RegisterCLRFieldGetter(field, get_eventCall_4);
            app.RegisterCLRFieldSetter(field, set_eventCall_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_eventCall_4, AssignFromStack_eventCall_4);
            field = type.GetField("ItemMod", flag);
            app.RegisterCLRFieldGetter(field, get_ItemMod_5);
            app.RegisterCLRFieldSetter(field, set_ItemMod_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_ItemMod_5, AssignFromStack_ItemMod_5);
            field = type.GetField("swap", flag);
            app.RegisterCLRFieldGetter(field, get_swap_6);
            app.RegisterCLRFieldSetter(field, set_swap_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_swap_6, AssignFromStack_swap_6);
            field = type.GetField("SelectChanged", flag);
            app.RegisterCLRFieldGetter(field, get_SelectChanged_7);
            app.RegisterCLRFieldSetter(field, set_SelectChanged_7);
            app.RegisterCLRFieldBinding(field, CopyToStack_SelectChanged_7, AssignFromStack_SelectChanged_7);
            field = type.GetField("DecayRate", flag);
            app.RegisterCLRFieldGetter(field, get_DecayRate_8);
            app.RegisterCLRFieldSetter(field, set_DecayRate_8);
            app.RegisterCLRFieldBinding(field, CopyToStack_DecayRate_8, AssignFromStack_DecayRate_8);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.UIComposite.TreeView());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.UIComposite.TreeView[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* get_SelectNode_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.SelectNode;

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_SelectNode_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TreeViewNode @value = (huqiang.UIComposite.TreeViewNode)typeof(huqiang.UIComposite.TreeViewNode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SelectNode = value;

            return __ret;
        }

        static StackObject* Initial_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Core.HGUI.UIInitializer @initializer = (huqiang.Core.HGUI.UIInitializer)typeof(huqiang.Core.HGUI.UIInitializer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Core.HGUI.UIElement @script = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.Data.FakeStruct @fake = (huqiang.Data.FakeStruct)typeof(huqiang.Data.FakeStruct).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Initial(@fake, @script, @initializer);

            return __ret;
        }

        static StackObject* Refresh_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Refresh();

            return __ret;
        }

        static StackObject* get_PercentageX_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.PercentageX;

            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* set_PercentageX_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @value = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.PercentageX = value;

            return __ret;
        }

        static StackObject* get_PercentageY_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.PercentageY;

            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* set_PercentageY_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @value = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.PercentageY = value;

            return __ret;
        }

        static StackObject* DefultItemClick_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIEvent.UserAction @e = (huqiang.UIEvent.UserAction)typeof(huqiang.UIEvent.UserAction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIEvent.UserEvent @o = (huqiang.UIEvent.UserEvent)typeof(huqiang.UIEvent.UserEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.DefultItemClick(@o, @e);

            return __ret;
        }

        static StackObject* SetItemUpdate_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.HotTVMiddleware @m = (huqiang.UIComposite.HotTVMiddleware)typeof(huqiang.UIComposite.HotTVMiddleware).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetItemUpdate(@m);

            return __ret;
        }

        static StackObject* Clear_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Clear();

            return __ret;
        }

        static StackObject* Update_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @time = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TreeView instance_of_this_method = (huqiang.UIComposite.TreeView)typeof(huqiang.UIComposite.TreeView).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Update(@time);

            return __ret;
        }


        static object get_Size_0(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).Size;
        }

        static StackObject* CopyToStack_Size_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).Size;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Size_0(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).Size = (UnityEngine.Vector2)v;
        }

        static StackObject* AssignFromStack_Size_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Vector2 @Size = (UnityEngine.Vector2)typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            ((huqiang.UIComposite.TreeView)o).Size = @Size;
            return ptr_of_this_method;
        }

        static object get_ItemSize_1(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).ItemSize;
        }

        static StackObject* CopyToStack_ItemSize_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).ItemSize;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_ItemSize_1(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).ItemSize = (UnityEngine.Vector2)v;
        }

        static StackObject* AssignFromStack_ItemSize_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Vector2 @ItemSize = (UnityEngine.Vector2)typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            ((huqiang.UIComposite.TreeView)o).ItemSize = @ItemSize;
            return ptr_of_this_method;
        }

        static object get_Root_2(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).Root;
        }

        static StackObject* CopyToStack_Root_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).Root;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Root_2(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).Root = (huqiang.UIComposite.TreeViewNode)v;
        }

        static StackObject* AssignFromStack_Root_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIComposite.TreeViewNode @Root = (huqiang.UIComposite.TreeViewNode)typeof(huqiang.UIComposite.TreeViewNode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TreeView)o).Root = @Root;
            return ptr_of_this_method;
        }

        static object get_ItemHigh_3(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).ItemHigh;
        }

        static StackObject* CopyToStack_ItemHigh_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).ItemHigh;
            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_ItemHigh_3(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).ItemHigh = (System.Single)v;
        }

        static StackObject* AssignFromStack_ItemHigh_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Single @ItemHigh = *(float*)&ptr_of_this_method->Value;
            ((huqiang.UIComposite.TreeView)o).ItemHigh = @ItemHigh;
            return ptr_of_this_method;
        }

        static object get_eventCall_4(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).eventCall;
        }

        static StackObject* CopyToStack_eventCall_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).eventCall;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_eventCall_4(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).eventCall = (huqiang.UIEvent.UserEvent)v;
        }

        static StackObject* AssignFromStack_eventCall_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIEvent.UserEvent @eventCall = (huqiang.UIEvent.UserEvent)typeof(huqiang.UIEvent.UserEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TreeView)o).eventCall = @eventCall;
            return ptr_of_this_method;
        }

        static object get_ItemMod_5(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).ItemMod;
        }

        static StackObject* CopyToStack_ItemMod_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).ItemMod;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_ItemMod_5(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).ItemMod = (huqiang.Data.FakeStruct)v;
        }

        static StackObject* AssignFromStack_ItemMod_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Data.FakeStruct @ItemMod = (huqiang.Data.FakeStruct)typeof(huqiang.Data.FakeStruct).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TreeView)o).ItemMod = @ItemMod;
            return ptr_of_this_method;
        }

        static object get_swap_6(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).swap;
        }

        static StackObject* CopyToStack_swap_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).swap;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_swap_6(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).swap = (huqiang.Data.SwapBuffer<huqiang.UIComposite.TreeViewItem, huqiang.UIComposite.TreeViewNode>)v;
        }

        static StackObject* AssignFromStack_swap_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Data.SwapBuffer<huqiang.UIComposite.TreeViewItem, huqiang.UIComposite.TreeViewNode> @swap = (huqiang.Data.SwapBuffer<huqiang.UIComposite.TreeViewItem, huqiang.UIComposite.TreeViewNode>)typeof(huqiang.Data.SwapBuffer<huqiang.UIComposite.TreeViewItem, huqiang.UIComposite.TreeViewNode>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TreeView)o).swap = @swap;
            return ptr_of_this_method;
        }

        static object get_SelectChanged_7(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).SelectChanged;
        }

        static StackObject* CopyToStack_SelectChanged_7(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).SelectChanged;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_SelectChanged_7(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).SelectChanged = (System.Action<huqiang.UIComposite.TreeView, huqiang.UIComposite.TreeViewItem>)v;
        }

        static StackObject* AssignFromStack_SelectChanged_7(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Action<huqiang.UIComposite.TreeView, huqiang.UIComposite.TreeViewItem> @SelectChanged = (System.Action<huqiang.UIComposite.TreeView, huqiang.UIComposite.TreeViewItem>)typeof(System.Action<huqiang.UIComposite.TreeView, huqiang.UIComposite.TreeViewItem>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8);
            ((huqiang.UIComposite.TreeView)o).SelectChanged = @SelectChanged;
            return ptr_of_this_method;
        }

        static object get_DecayRate_8(ref object o)
        {
            return ((huqiang.UIComposite.TreeView)o).DecayRate;
        }

        static StackObject* CopyToStack_DecayRate_8(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TreeView)o).DecayRate;
            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_DecayRate_8(ref object o, object v)
        {
            ((huqiang.UIComposite.TreeView)o).DecayRate = (System.Single)v;
        }

        static StackObject* AssignFromStack_DecayRate_8(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Single @DecayRate = *(float*)&ptr_of_this_method->Value;
            ((huqiang.UIComposite.TreeView)o).DecayRate = @DecayRate;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.UIComposite.TreeView();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
